Skip to content

[1.18] Azure appconfig - include contentType and label in metadata#4338

Draft
MyMirelHub wants to merge 2 commits intodapr:mainfrom
MyMirelHub:contentType-support-az-app-config
Draft

[1.18] Azure appconfig - include contentType and label in metadata#4338
MyMirelHub wants to merge 2 commits intodapr:mainfrom
MyMirelHub:contentType-support-az-app-config

Conversation

@MyMirelHub
Copy link
Copy Markdown
Contributor

@MyMirelHub MyMirelHub commented Apr 14, 2026

Description

This PR updates the Azure App Configuration configuration store to surface additional Azure setting properties in the returned configuration.Item.Metadata, and adds unit test assertions to validate those metadata fields.

Changes:

  • Refactors setting → configuration.Item conversion into a helper (settingToConfigurationItem).
  • Adds contentType (and validates label) to returned item metadata.
  • Updates mocks and tests to populate/assert Label and ContentType.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #4308

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

Note: We expect contributors to open a corresponding documentation PR in the dapr/docs repository. As the implementer, you are the best person to document your work! Implementation PRs will not be merged until the documentation PR is opened and ready for review.

Signed-off-by: MyMirelHub <15373565+MyMirelHub@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Azure App Configuration configuration store to surface additional Azure setting properties in the returned configuration.Item.Metadata, and adds unit test assertions to validate those metadata fields.

Changes:

  • Refactors setting → configuration.Item conversion into a helper (settingToConfigurationItem).
  • Adds contentType (and validates label) to returned item metadata.
  • Updates mocks and tests to populate/assert Label and ContentType.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
configuration/azure/appconfig/appconfig.go Centralizes mapping logic and adds contentType to response metadata.
configuration/azure/appconfig/appconfig_test.go Extends mock settings and adds assertions for label/contentType metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread configuration/azure/appconfig/appconfig.go Outdated
Comment thread configuration/azure/appconfig/appconfig.go Outdated
Comment thread configuration/azure/appconfig/appconfig_test.go Outdated
Signed-off-by: MyMirelHub <15373565+MyMirelHub@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MyMirelHub MyMirelHub marked this pull request as ready for review April 14, 2026 15:47
@MyMirelHub MyMirelHub requested review from a team as code owners April 14, 2026 15:47
@MyMirelHub MyMirelHub marked this pull request as draft April 14, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure App Configuration component does not expose contentType in configuration metadata

2 participants